package cate.game.role.bag.awakenfairy;

import cate.common.table.d.GDBag;
import cate.common.table.d.GDObj;
import cate.common.table.item.awakenfairy.row.AwakenFairyBaseRow;
import cate.game.role.Role;
import cate.game.role.bag.BagContainer;
import cate.game.role.bag.awakenfairy.msg.AwakenFairyAddResp;

public class AwakenFairyBag  extends BagContainer<AwakenFairy> {
    public AwakenFairyBag() {

    }

    public AwakenFairyBag(Role role){
        super(role);
    }

    @Override
    protected int calcCapacity() {
        return GDBag.Capcity.FAIRT;
    }

    @Override
    protected AwakenFairyAddResp createItemAddMsg() {
        return new AwakenFairyAddResp();
    }

    @Override
    protected AwakenFairy createItem(int tid, long num) {
        return new AwakenFairy(role, tid, num);
    }

    @Override
    protected byte getItemType() {
        return GDObj.Type.AWAKEN_FAIRY;
    }

    @Override
    public AwakenFairyBaseRow getItemTpl(int tid) {
        return role.getGame().table.awakenFairy.base.get(tid);
    }
}
